﻿using Husb.DataUtil;
using System.Data;
using Husb.Util;
namespace CentralOffice.MyTable.Data {


    partial class DiaryDataSet
    {
        public partial class diaryRow
        {
            public string FilterExpression
            {
                get
                {
                    string where = "";
                    //GetPartWhereCondition(string fieldname, string propertyName, DataRow row, DbType dbType, bool startAnd, ExpressionKind kind, bool igoreZero)
                    //where += DataAccessUtil.GetPartWhereCondition("Id", this.Id);
                    where += DataAccessUtil.GetPartWhereCondition("UserId", this, true);
                    where += DataAccessUtil.GetPartWhereCondition("DiaType", this, true);
                    where += DataAccessUtil.GetPartWhereCondition("DiaContent", this);
                    where += DataAccessUtil.GetPartWhereCondition("DiaDate", "EndDate", this);
                    where += DataAccessUtil.GetPartWhereCondition("Subject", this);
                    where += DataAccessUtil.GetPartWhereCondition("DeleteFlag", "DeleteFlag", this, DbType.Int32, true, ExpressionKind.Equals,false);
                    return where;
                }
            }
        }
    }
}
